<?php
/**
 *
 */
class game_logModel extends Model
{
    public function multiAddLog($game_log_id, $result, $bet, $podcast_income, $income)
    {
        $create_time = NOW_TIME;
        $create_date = to_date($create_time, 'Y-m-d H:i:s');
        $table       = DB_PREFIX . 'game_log';
        self::$sql   = "UPDATE $table
            SET `status` = 2,
             `result` = $result,
             `suit_patterns` = '$suit_patterns',
             `bet` = '$bet',
             `podcast_income` = $podcast_income,
             `income` = $income
            WHERE
                `id` = $game_log_id";
        return Connect::exec(self::$sql);
    }
}
